/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package proj5labbd.graphics.consultas;

import java.awt.Dimension;
import java.awt.Toolkit;
import proj5labbd.DBInterface;
import proj5labbd.graphics.MainFrame;
import proj5labbd.graphics.abstractOpGraphics.OperationFrame;

/*
 * Frame utilizado para consultas pré definidas pelos desenvolvedores
 */
public class SerieFrame extends OperationFrame {

    private final int width = 500;
    private final int height = 700;
    
    public SerieFrame(MainFrame frame, DBInterface dbInterface) {
        super(frame);
        setTitle("Séries");
        setDefaultCloseOperation(SerieFrame.DISPOSE_ON_CLOSE);
        Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((dim.width-width)/2,(dim.height-height)/2,width,height);
        addPanel(new SeriePanel(this,dbInterface), OpPanel.CONSULTA);
        jtbbOperation.addTab("Serie", consultaPanel);
        }
    
}
